package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {


    //use product to get Product object
    Product getProduct(String productId);

    // get Product which user search for
    List<Product> searchProductList(String keywords);
    //
    List<Product> getProductListByCategory(String categoryId);
}
